rewriting imaginary numbers